<%
'This file contains the HTML code to instantiate the Smart Viewer Java.      
'
'You will notice that the Report Name parameter references the rptserver.asp file.
'This is because the report pages are actually created by rptserver.asp.
'Rptserver.asp accesses session("oApp"), session("oRpt") and session("oPageEngine")
'to create the report pages that will be rendered by the ActiveX Smart Viewer.
'
%>
<html>
<head>
<title>Crystal Reports Java Viewer using Browser's JVM</title>
</head>
<body bgcolor=C6C6C6 onunload="CallDestroy();">
<SCRIPT LANGUAGE="JavaScript"><!--
 	var _ns3 = false;
 	var _ns4 = false;
 	//--></SCRIPT>
 	<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
 	var _info = navigator.userAgent;
 	var _ns3 = (navigator.appName.indexOf("Netscape") >= 0 && _info.indexOf("Win16") < 0 && _info.indexOf("Mozilla/3") >= 0);
 	var _ns4 = (navigator.appName.indexOf("Netscape") >= 0 && _info.indexOf("Win16") < 0 && _info.indexOf("Mozilla/4") >= 0 );
 	//--></SCRIPT></COMMENT>
 		<SCRIPT LANGUAGE="JavaScript"><!--
 			if(_ns3==true)
 document.writeln( '<applet code=com.crystaldecisions.ReportViewer.ReportViewer codebase="/viewer9/JavaViewer" id=ReportViewer width=100% height=100%  archive="/viewer9/JavaViewer/ReportViewer.zip">' );
 			else if (_ns4 == true)
 document.writeln( '<applet code=com.crystaldecisions.ReportViewer.ReportViewer codebase="/viewer9/JavaViewer" id=ReportViewer width=100% height=100%  archive="/viewer9/JavaViewer/ReportViewer.jar">' );
 			else
 document.writeln( '<applet code=com.crystaldecisions.ReportViewer.ReportViewer codebase="/viewer9/JavaViewer" id=ReportViewer width=100% height=100%  >' );
 		//--></SCRIPT>

 		<param name=ReportName value="rptserver.asp">
		<param name=HasGroupTree value=true>
		<param name=ShowGroupTree value=true>
		<param name=HasRefreshButton value=true>
		<param name=HasPrintButton value=true>
		<param name=HasExportButton value=true>
 		<param name=cabbase value="/viewer9/JavaViewer/ReportViewer.cab">
		</applet>

<script language="javascript">
function CallDestroy()
{
	window.open("Cleanup.asp");
}
</script>
</body>
</html>